package com.itheima.service;


import com.github.pagehelper.PageInfo;
import com.itheima.domain.Role;
import com.itheima.domain.User;

import java.util.List;

public interface UserService {

    PageInfo<User> findByPage(String pageSize, String currentPage);

    void addUser(User user);

    void deleteUser(String[] ids);

    PageInfo<User> search(String username, String pageSizeStr, String currentPageStr);

    User findById(String id);

    void updateStatus(String id, int status);

    List<Role> findAllByUserId(String id);

    void updateRole(String userId, String[] ids);

    List<Role> findRoleByUserId(String id);
}
